<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" name="files" id="formUpload" method="post"  enctype="multipart/form-data">
        <div class="form-group">
            <label class="col-sm-3 control-label">模板下载：</label>
            <div class="col-sm-8">
                <button type="button" id="downloadExample" class="btn btn-primary ">模板下载</button>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文件导入：</label>
            <div class="col-sm-8">
                <button type="button" id="uploadCommon" class="btn btn-primary ">点击导入</button>
                <input type="file" id="file" name="file" style="display: none;"/>
            </div>
        </div>

    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "cy/studentManage";
    //文件导入
    cy.importUrl=prefix + "/importData";

    function submitHandler() {
        if ($.validate.form()) {
            cy.uploadFile();
        }
    }
</script>
</body>
</html>
